package cc.rengu.igas.share.common.enums;

/**
 * 业务响应码枚举类
 *
 * @author 王成
 * @date 2021/9/29
 */
public enum RespCodeEnum {
    TRANS_SUCCESS("00000000", "交易成功"),
    INVALID_REQEST_PARAM("ER11SH01", "无效请求参数"),
    TRANS_NOT_SUPPORT("ER12SH01", "不支持此交易"),
    INVALID_QR_CODE("ER12SH02", "无效二维码"),
    MCHNT_INFO_NOT_FOUND("ER12SH03", "商户不存在"),
    TRANS_LIMIT_OVERRUN("ER12SH04", "交易限额超限"),
    ORDER_NOT_EXIST("ER12SH05", "订单不存在"),
    ORDER_INSERT_ERROR("ER12SH06", "登记订单失败"),
    ORDER_UPDATE_ERROR("ER12SH07", "更新订单失败"),
    ORDER_PAY_FINISH("ER12SH08", "订单已支付完成"),
    NOT_SUPPORT_BIZ("ER12SH09", "不支持的业务"),
    TRANS_AMT_MISMATCH("ER12SH10", "交易金额不匹配"),
    SIGN_INFO_NOT_EXIST("ER12SH11", "签约信息不存在"),
    USER_INFO_NOT_EXIST("ER12SH12", "用户信息不存在"),
    USER_INFO_INSERT_ERROR("ER12SH13", "登记用户信息失败"),
    USER_INFO_UPDATE_ERROR("ER12SH14", "更新用户信息失败"),
    TRANS_IN_PROGRESS("ER12SH99", "交易处理中"),
    SYSTEM_ERROR("ER999999", "系统异常"),
    ;
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
